<?php
/**
 * User: yuesir
 * Date: 2016/4/28
 * Time: 23:00
 */

namespace Lib;


class SizeDecorator implements DrawDecorator{
    protected $fontSize;

    public function __construct($fontSize = '14px')
    {
        $this->fontSize = $fontSize;
    }
    function beforeDraw()
    {
        echo "<div style='font-size:{$this->fontSize}'>";
    }

    function afterDraw()
    {
        echo "</div>";
    }
}